package com.jt.demo1.proxy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
       ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        User target = a.getBean(User.class);
        User proxy= (User) JDKProxy.getProxy(target);
       proxy.addUser();
    }
}
